package com.fs.service.bo.price;

import com.fs.entity.Price;
import com.fs.service.bo.room.BoRoom;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BoPriceWithRoom extends BoPrice {
    private BoRoom room;

    public BoPriceWithRoom(Price p) {
        super(p);
        try {
            this.room = new BoRoom(p.getRoom());
        } catch (Exception ignored) {
        }
    }

}
